package com.jing.product.controller;

import com.jing.common.core.domain.R;
import com.jing.product.domain.PmsProductPategory;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
@RequestMapping("/attribute")
@Api(tags = "商品分类表")
public class ProductPategoryController {

    @PostMapping("/findPategory")
    @ApiOperation("测试商品分类")
    public R findPategory(@Valid @RequestBody PmsProductPategory pmsProductPategory){
        return R.ok();
    }

    @PostMapping("/PategoryAdd")
    @ApiOperation("添加商品分类")
    public R PategoryAdd(@Valid @RequestBody PmsProductPategory pmsProductPategory){
        return R.ok();
    }

    @PostMapping("/PategoryDelect")
    @ApiOperation("删除商品分类")
    public R PategoryDelect(@Valid @RequestBody String id){
        return R.ok();
    }


    @PostMapping("/PategoryUpdate")
    @ApiOperation("修改商品分类")
    public R PategoryUpdate(@Valid @RequestBody String id){
//        brandService.BrandDelect(id);
        return R.ok();
    }

}
